import request from '@/utils/request'

// 查询安全生产隐患排查治理清单列表
export function listInvestigation(query) {
  return request({
    url: '/risk/investigation/list',
    method: 'get',
    params: query
  })
}

// 查询安全生产隐患排查治理清单详细
export function getInvestigation(id) {
  return request({
    url: '/risk/investigation/' + id,
    method: 'get'
  })
}

// 新增安全生产隐患排查治理清单
export function addInvestigation(data) {
  return request({
    url: '/risk/investigation',
    method: 'post',
    data: data
  })
}

// 修改安全生产隐患排查治理清单
export function updateInvestigation(data) {
  return request({
    url: '/risk/investigation',
    method: 'put',
    data: data
  })
}

// 删除安全生产隐患排查治理清单
export function delInvestigation(id) {
  return request({
    url: '/risk/investigation/' + id,
    method: 'delete'
  })
}

export function exportInvestigation() {
  return request({
    url: '/risk/investigation/export',
    method: 'get'
  })
}
